package io.renren.modules.mapp.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.mapp.dao.CreditScoreDao;
import io.renren.modules.mapp.entity.CreditScoreEntity;
import io.renren.modules.mapp.service.CreditScoreService;



@Service("creditScoreService")
public class CreditScoreServiceImpl implements CreditScoreService {
	@Autowired
	private CreditScoreDao creditScoreDao;
	
	@Override
	public CreditScoreEntity queryObject(String openId){
		return creditScoreDao.queryObject(openId);
	}
	
	@Override
	public List<CreditScoreEntity> queryList(Map<String, Object> map){
		return creditScoreDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return creditScoreDao.queryTotal(map);
	}
	
	@Override
	public void save(CreditScoreEntity creditScore){
		creditScoreDao.save(creditScore);
	}
	
	@Override
	public void update(CreditScoreEntity creditScore){
		creditScoreDao.update(creditScore);
	}
	
	@Override
	public void delete(String openId){
		creditScoreDao.delete(openId);
	}
	
	@Override
	public void deleteBatch(String[] openIds){
		creditScoreDao.deleteBatch(openIds);
	}
	
}
